package com.mj.factory.workOrder;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by Administrator on 2017/3/16.
 */
public interface WorkOrderDao extends JpaRepository<WorkOrder,Long>,
        JpaSpecificationExecutor<WorkOrder>{
    WorkOrder findByChartNumber(String carNum);
    Page<WorkOrder> findByProductOrder_ProjectNameLikeAndPartNameLikeAndChartNumberLikeAndWorkOrderStatusLikeAndWorkOrderStatusNot(
            String projectName,String partName,String chartNumber,String status,String noStatus,Pageable page);
}
